package com.ocom.common.request.exposeapi.tecsun;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


@Data
public class TecsunBaseRequest {

    @NotBlank(message = "comId 不能为空")
    String comId;

    @NotBlank(message = "nonceStr 不能为空")
    String nonceStr;

    @NotBlank(message = "sign 不能为空")
    String sign;

    @NotNull(message = "timestamp 不能为空")
    Long timestamp;

    @Override
    public String toString() {
        return "TecsunBaseRequest{" +
                "comId='" + comId + '\'' +
                ", nonceStr='" + nonceStr + '\'' +
                ", sign='" + sign + '\'' +
                ", timestamp=" + timestamp +
                '}';
    }
}
